package com.bee.beemanage.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bee.beemanage.api.entity.output.Dict;
import com.bee.beemanage.api.entity.SysDict;
import com.bee.beemanage.system.common.utils.result.Result;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @author 陈国松
 * @since 2023-05-25
 */
public interface SysDictService extends IService<SysDict> {
    /**
     * 分页获取字典码值及释义
     * @param dictCode 字典码值
     * @return 码值:释义 列表
     */
    Page<Dict>  pageGetDict(Page<Dict> page, String dictCode, String label, String value);

    Page<SysDict> recycleSearch(Page<SysDict> page, SysDict sysDict, LocalDateTime startTime, LocalDateTime endTime);

    boolean recover(List<String> idsList);


    Result clear();
}
